﻿//var u = location.href;
//var idx = u.indexOf('?');
//if (idx > -1)
//    u = u.substring(0, idx);
//u += '?';

//function StatusMsg(msgStr) {
//    status = msgStr; document.returnValue = true;
//}

//var tmpCat = "UNKNOWN";
//var tmpSubCat = "UNKNOWN";

//function linkclick(cmstag) {
//    var url = cmstag;
//    templatename = (typeof (templatename) != 'undefined') ? templatename : '';
//    currentLink = (typeof (currentLink) != 'undefined') ? currentLink : '';
//    subid = (typeof (subid) != 'undefined') ? subid : '';
//    if (templatename) url += '&tmp=' + templatename;
//    if (currentLink) url += '&type=' + currentLink;
//    if (subid.length > 0) url += "&subid=" + subid;
//    location.href = url;
//}

//function staticlink(st, pos) {
//    exit = false;
//    pos = (typeof (pos) != 'undefined') ? pos : '';
//    location.href = u + 'aid=6&fwdId=1200&pos=' + pos + '&ps=DAUSUE&Keywords=' + st + '&qs=06oENya4ZGM2qO9Ey6UEtHtp0Jx7rpDM0DT0_8vbd4h27iYWH1fLrDtkAG13sFFUuxvzmh4nw7g8b4QwIOOG1mq3h4FSZW5r3uv0pkQY16qDHOnKWiom8MBiECZ30Y72T6LEqEGejT_YHnc8lTYkHzTklf-jMd8k9dMoiDNlfgeMr_Vz6keDSczZ325Ce5ofc5lzb3qR6b33sjR6p49HuHR5gNIW0XHqwIG1qgQyTESTJ6a1D3Cl6oJIpxCXGhxgx5g4hu4o_whb6lKII9gDrjGEybypbHa7ciLcs6CBpVOVb1VxGhRtVbSgACLvO8PDzvGEqZSJi6zgKXCZP5f5cndSBv4lTti2-g8xL4cGF6RgEGtRITf04u,YT0zO2s9MzU7aD1iOGMwZWY0NjNiMzJmZTAy&fwdId=1200';
//    return false;
//}

//function googleTrackPage(str) {
//    _gaq.push(['_trackPageview', str]);
//    return;
//}

////official tag
//$('.leftside .sp .listing a.title').each(function (index, ele) {
//    if ($(this).attr('rel').toLowerCase() == 'true') {
//        $('<span class="os">Official Site</span>').insertAfter($(this));
//    }
//});

//function addCommas(str) {
//    var amount = new String(str);
//    amount = amount.split("").reverse();

//    var output = "";
//    for (var i = 0; i <= amount.length - 1; i++) {
//        output = amount[i] + output;
//        if ((i + 1) % 3 == 0 && (amount.length - 1) !== i) output = ',' + output;
//    }
//    return output;
//}

//var rand = addCommas(Math.floor(Math.random() * 124939012));
//$('.result-counter .page').text('1 - 7');
//$('.result-counter .total').text(rand);